package com.juvepoland.jpdroid.models;


public enum NewsResultType {
	EVENTS(1), OTHERS(2);
	private int number;

	public int getNumber() {
		return number;
	}

	private NewsResultType(int n) {
		number = n;
	}

	public static NewsResultType getNewsResultType(int n) {
		for (NewsResultType r : values()) {
			if (r.getNumber() == n) {
				return r;
			}
		}
		return null;
	}
};
